<?php

class ActionLogin extends Action {
	public function IsPermitted(){ return !User::GetCurrent()->IsVisitor(); }
	public function GetIconName(){ return 'oxy/ico/Login'; }

	public function Render(){
		LoginControl::Make()->WithRedirectOnSuccess(new ActionWelcome());
	}	
}

?>
